import { createApp } from 'vue'
import '@/assets/css/base.css'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'
import { VxeTable, VxeColumn } from 'vxe-table'
import { VxeUI }from 'vxe-pc-ui'
// 导入主题变量，也可以重写主题变量
import 'vxe-table/styles/cssvar.scss'
import 'vxe-pc-ui/styles/cssvar.scss'
import zhCN from 'vxe-table/lib/locale/lang/zh-CN'
const pinia = createPinia()

function lazyVxeTable (app: any) {
    app.use(VxeTable)
    app.use(VxeColumn)
}
// 导入默认的语言

VxeUI.setI18n('zh-CN', zhCN)
VxeUI.setLanguage('zh-CN')
createApp(App).use(lazyVxeTable)
.use(pinia).use(router).mount('#app')
